package com.itdfq.delay;

import com.alibaba.fastjson.JSON;
import com.itdfq.delayTask.Delay;
import com.itdfq.delayTask.DelayDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author duanfangqin 2022/7/22 11:46
 * @implNote
 */
@Service
@Slf4j
public class TestService {

    @Delay(taskName = "DEMO111")
    public void test(DelayDTO da) {
        log.info("成功执行延时任务接收信息：参数：{}", JSON.toJSONString(da));
    }
}
